package com.supermarket.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supermarket.business.domain.SupermarketInventoryChange;
import com.supermarket.common.annotation.AutoFill;
import com.supermarket.common.enums.OperationType;

import java.util.List;

/**
 * 库存变动Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-21
 */
public interface SupermarketInventoryChangeMapper extends BaseMapper<SupermarketInventoryChange>
{
    /**
     * 查询库存变动
     * 
     * @param changeId 库存变动主键
     * @return 库存变动
     */
    public SupermarketInventoryChange selectSysInventoryChangeByChangeId(Long changeId);

    /**
     * 查询库存变动列表
     * 
     * @param supermarketInventoryChange 库存变动
     * @return 库存变动集合
     */
    public List<SupermarketInventoryChange> selectSysInventoryChangeList(SupermarketInventoryChange supermarketInventoryChange);

    /**
     * 新增库存变动
     * 
     * @param supermarketInventoryChange 库存变动
     * @return 结果
     */
    @AutoFill(value = OperationType.INSERT)
    public int insertSysInventoryChange(SupermarketInventoryChange supermarketInventoryChange);

    /**
     * 修改库存变动
     * 
     * @param supermarketInventoryChange 库存变动
     * @return 结果
     */
    @AutoFill(value = OperationType.UPDATE)
    public int updateSysInventoryChange(SupermarketInventoryChange supermarketInventoryChange);

    /**
     * 删除库存变动
     * 
     * @param changeId 库存变动主键
     * @return 结果
     */
    public int deleteSysInventoryChangeByChangeId(Long changeId);

    /**
     * 批量删除库存变动
     * 
     * @param changeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysInventoryChangeByChangeIds(Long[] changeIds);
}
